#ifndef __BSP_MOTOR_H__
#define __BSP_MOTOR_H__

#include "bsp.h"

#define Motor_CLK         MotorTwo_CLK|MotorThree_CLK

#define MotorOne_CLK		  RCC_APB2Periph_GPIOC
#define MotorOne_GPIO		  GPIOC
#define MotorOne_PIN_x		GPIO_Pin_11
#define MotorOne_PIN_y		GPIO_Pin_12

#define MotorTwo_CLK		  RCC_APB2Periph_GPIOC|RCC_APB2Periph_GPIOA
#define MotorTwo_GPIO_x		GPIOA
#define MotorTwo_GPIO_y		GPIOC
#define MotorTwo_PIN_x		GPIO_Pin_12
#define MotorTwo_PIN_y		GPIO_Pin_10

#define MotorThree_CLK		RCC_APB2Periph_GPIOB
#define MotorThree_GPIO		GPIOB
#define MotorThree_PIN_x  GPIO_Pin_13
#define MotorThree_PIN_y	GPIO_Pin_12

#define MotorFour_CLK		  RCC_APB2Periph_GPIOB
#define MotorFour_GPIO		GPIOB
#define MotorFour_PIN_x		GPIO_Pin_15
#define MotorFour_PIN_y		GPIO_Pin_14

//10k HZ
#define PWMPeriod  7200-1

void	Motor_PWM_Init(void);

#endif
